package org.mm.exception;
import static org.mm.parameter.enm.Error.GENERIC;
import org.mm.parameter.enm.Error;

public class AppException extends Exception {

	private static final long serialVersionUID = 4457135132437036927L;

	private Error error = null;

	public AppException() {
		super(GENERIC.message);
		this.error = GENERIC;
	}
	
	public AppException(Error error) {
		super(error.message);
		this.error = error;
	}
	
	public Error getError() {
		return error;
	}

	public void setError(Error error) {
		this.error = error;
	}
}